const resolve = require("rollup-plugin-node-resolve");
const commonjs = require("rollup-plugin-commonjs");
const babel = require("rollup-plugin-babel");
const {eslint} = require("rollup-plugin-eslint");

let config = [{
    input: 'dev/index.js',
    output: [{
        file: 'core/main.js',
        format: 'umd'
    },{
        file: 'core/main.bg.js',
        format: 'umd'
    }],
    plugins: [ 
        eslint({
            throwOnError: true,
            throwOnWarning: true,
            exclude: "node_modules/**",
        }),
        // resolve(),
        babel({
            exclude: "node_modules/**",
        }),
        // commonjs()
    ]
}]
export default config;